package com.gonsin.i18n.example;


import com.gonsin.i18n.logic.EnableGonsinI18n;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication

// 检索spring组件
@ComponentScan({
        // 解决 TypeNameExtractor 找不到的问题
        "springfox.documentation.schema",
        "com.gonsin.i18n",
})

@EnableGonsinI18n

// 移除spring的security拦截框架
@EnableAutoConfiguration(exclude = {
        org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class})


public class Application extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(Application.class);
    }

}
